﻿namespace WPForms.Common.Model
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    /// <summary>
    /// This fields just displays some static text.
    /// </summary>
    [Description("This simple field displays the given text.")]
    public class LabelField : FormField
    {
        /// <summary>
        /// Gets or sets the text to display.
        /// </summary>
        [Description("The text to display in the label.", System.ComponentModel.EditorBrowsableState.Always)]
        public string Text { get; set; }

        /// <summary>
        /// Writes the specified builder.
        /// </summary>
        /// <param name="builder">The builder.</param>
        public override void Write(StringBuilder builder)
        {
        }

        /// <summary>
        /// Reads the specified stored value.
        /// </summary>
        /// <param name="storedValue">The stored value.</param>
        public override void Read(string storedValue)
        {
        }
    }
}
